﻿//----------------------------------------------------------------
// Desc: 
// Edit: ShowLong, http://blog.csdn.net/showlong
//
// Date Created: 2011-08-02
//
// Update Date : 
//
// Copyright (c) Fuel4D (http://www.fuel4d.com), All rights reserved.
//
//----------------------------------------------------------------
#pragma once


FINLINE IFSpriteObject* IFSpriteFile::Get(const WCHAR* name)
{
    IFSpriteObject* ret = Get(FGetHashW(name));
    if (!ret)
        FOutDebugStringA(FAssertFmtA(_FTA(">>FGE>> 获取精灵(%s)失败(%s)\n"), FStringA(name).c_str(), szFilenameA));
    return ret;
}

FINLINE IFSpriteObject* IFSpriteFile::Get(const ACHAR* name)
{
    IFSpriteObject* ret = Get(FGetHashA(name));
    if (!ret)
        FOutDebugStringA(FAssertFmtA(_FTA(">>FGE>> 获取精灵(%s)失败(%s)\n"), name, szFilenameA));
    return ret;
}